package com.code.dao;

import com.code.entity.QueryPageBean;
import com.code.pojo.Student;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface StudentMapper extends Mapper<Student> {

    @Select("select a.name name,count(a.id)value from teacher a left join student b on a.id = b.tid group by a.id")
    List<Map> tongji();

    List<Student> findLike(QueryPageBean queryPageBean);

    List<Student> findPageNo(QueryPageBean queryPageBean);

//    List<Map> twobzt();
}
